$(() => {
    let dataInfo = JSON.parse(localStorage.getItem("dataInfo"));
    dataInfo.map(v => {
        let sights = !!v.sights[0] ? v.sights[0] : v.ttsRouteType;
        let type = v.type == "freetrip" ? "自由行" : "跟团游";
        let element = `
            <li>
                <a href="../details/index.html?id=${v.encodeId}">
                    <div class="img">
                        <div class="flag">${type}</div>
                        <img src="${v.extensionImg}" alt="">
                        <div class="desc">${sights}</div>
                    </div>
                    <div class="title">${v.title}</div>
                    <div class="price">￥ ${v.totalPrice} <span style="color: #e8e8;">起</span></div>
                    <div class="data">出发日期：${v.details.date}</div>
                </a>
            </li>
        `;
        $(element).appendTo(".more>ul");
    })
})